
$(function () {
	

//查询条件重置
$("#search_reset").click(function(){
	$("input").val("");
    //$("select").val("");
});

    $('#bot_detail').on('show.bs.modal', function (event) {

        $("#box").html("");
        $("#bottle").html("");
        var _e = $(event.relatedTarget);
        var bQrcodeId = _e.data("qrcodeboxid"),qrCompanyId =  _e.data("qrcompanyid");
        $.get("/getBottleByBox?bQrcodeId=" + bQrcodeId +"&companyId=" +qrCompanyId , function (re) {
            var list = re.data;
            var str = "瓶码：";
            for (var i in list) {
                var box = list[i];
                str += box.pQrcodeId + "&nbsp;";
            }
            $("#box").html("箱码：" + bQrcodeId);
            $("#bottle").html(str);
        });
    });


});
